﻿using System;
using Microsoft.SharePoint.Administration;
using System.Runtime.InteropServices;

namespace CodeCounsel.SharePoint.NavigationService
{
    [Guid("AF598799-7BC3-4A46-BF78-C1672289409A")]
    public class NavigationServiceInstance
        : SPIisWebServiceInstance
    {
        public override string TypeName
        {
            get { return "Navigation Service (Demo)"; }
        }

        public NavigationServiceInstance()
        {
        }

        public NavigationServiceInstance(NavigationService service, SPServer server)
            : base(server, service)
        {
        }

        public static NavigationServiceInstance Create(
            NavigationService service, SPServer server)
        {
            NavigationServiceInstance instance = new NavigationServiceInstance(service, server);
            instance.Update();
            return instance;
        }
    }
}
